#pragma once

#include "Types.h"

namespace Vortex { namespace Wrapper { namespace Direct3D {

	///<summary>Display Mode</summary>
	public value struct DisplayMode {
		UINT      Width;
		UINT      Height;
		UINT      RefreshRate;
		D3DFormat Format;

		DisplayMode(D3DDISPLAYMODE* dm) {
			Width = dm->Width;
			Height = dm->Height;
			RefreshRate = dm->RefreshRate;
			Format = (D3DFormat)dm->Format;
		}

		D3DDISPLAYMODE ToD3DDISPLAYMODE() {
			D3DDISPLAYMODE dm;
			dm.Width = Width;
			dm.Height = Height;
			dm.RefreshRate = RefreshRate;
			dm.Format = (D3DFORMAT)Format;
			return dm;
		}
	};

} } }